<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <record id="hr_overtime_hour_form" model="ir.ui.view">
            <field name="name">hr.overtime.hour.form</field>
            <field name="model">hr.overtime.hour</field>
            <field name="arch" type="xml">
                <form string="Master Overtime">
				<sheet>
                    <div class="oe_title">
                        <h1>
                            <label string="Overtime"/>
                        </h1>
                    </div>
                     <group>
                        <group>
                            <field name="name"/>
							<field name="hour_ids">
								<form string="Master Overtime">
                        			<group>
                        				<field name="from_hour"/>
                        				<field name="to_hour"/>
                        				<field name="multiply"/>
                        			</group>
                        		</form>
                        		<tree string="Master Overtime">
                        			<field name="from_hour"/>
                       				<field name="to_hour"/>
                       				<field name="multiply"/>
                        		</tree>
							</field>
                        </group>
                     </group>
				</sheet>
                </form>
            </field>
        </record>

       <record id="hr_overtime_hour_search" model="ir.ui.view">
            <field name="name">hr.overtime.hour.search</field>
            <field name="model">hr.overtime.hour</field>
            <field name="arch" type="xml">
                <search string="Search Overtime">
                    <field name="name"/>
                </search>
            </field>
        </record>
 
         <record id="hr_overtime_hour_tree" model="ir.ui.view">
            <field name="name">hr.overtime.hour.tree</field>
            <field name="model">hr.overtime.hour</field>
            <field name="arch" type="xml">
                <tree string="Master Overtime">
                    <field name="name"/>
                </tree>
            </field>
        </record>

		<record id="hr_overtime_hour_action" model="ir.actions.act_window">
            <field name="name">Overtime calculation</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">hr.overtime.hour</field>
            <field name="view_mode">tree,form</field>
            <field name="search_view_id" ref="hr_overtime_hour_search"/>
            <field name="help" type="html">
              <p class="oe_view_nocontent_create">
                Click to create a new Overtime entries.
              </p>
            </field>
        </record>
        
		<menuitem action="hr_overtime_hour_action" id="menu_hr_overtime_hour"
            parent="menu_overtime"
            sequence="1"/>  
    </data>
</openerp>
